//SPDX-FileCopyrightText: Copyright 2022-2024 深圳市同心圆网络有限公司
//SPDX-License-Identifier: GPL-3.0-only

export interface EventAttr {
    key: string;
    desc: string;
}
export interface EventDesc {
    id: string;
    name: string;
    attrList: EventAttr[];
}

export interface EventGroup {
    id: string;
    name: string;
    eventDescList: EventDesc[];
}

const codeEventList: EventDesc[] = [
    {
        id: "AddCommentEvent",
        name: "新增代码评论",
        attrList: [
            {
                key: "comment_id",
                desc: "评论ID",
            },
            {
                key: "thread_id",
                desc: "评论会话ID",
            },
            {
                key: "content_type",
                desc: "内容类型",
            },
            {
                key: "content",
                desc: "内容",
            },
        ],
    },
    {
        id: "UpdateCommentEvent",
        name: "更新代码评论",
        attrList: [
            {
                key: "comment_id",
                desc: "评论ID",
            },
            {
                key: "thread_id",
                desc: "评论会话ID",
            },
            {
                key: "old_content_type",
                desc: "旧内容类型",
            },
            {
                key: "new_content_type",
                desc: "新内容类型",
            },
            {
                key: "old_content",
                desc: "旧内容",
            },
            {
                key: "new_content",
                desc: "新内容",
            },
        ],
    },
    {
        id: "RemoveCommentEvent",
        name: "删除代码评论",
        attrList: [
            {
                key: "comment_id",
                desc: "评论ID",
            },
            {
                key: "thread_id",
                desc: "评论会话ID",
            },
            {
                key: "content_type",
                desc: "内容类型",
            },
            {
                key: "content",
                desc: "内容",
            },
        ],
    },
];

const ideaEventList: EventDesc[] = [
    {
        id: "CreateIdeaEvent",
        name: "创建知识点",
        attrList: [
            {
                key: "idea_id",
                desc: "知识点ID",
            },
            {
                key: "title",
                desc: "知识点标题",
            },
            {
                key: "keyword_list",
                desc: "关键词列表",
            },
        ]
    },
    {
        id: "UpdateIdeaContentEvent",
        name: "更新知识点内容",
        attrList: [
            {
                key: "idea_id",
                desc: "知识点ID",
            },
            {
                key: "old_title",
                desc: "旧知识点标题",
            },
            {
                key: "new_title",
                desc: "新知识点标题",
            },
        ]
    },
    {
        id: "UpdateIdeaKeywordEvent",
        name: "修改知识点关键词",
        attrList: [
            {
                key: "idea_id",
                desc: "知识点ID",
            },
            {
                key: "title",
                desc: "知识点标题",
            },
            {
                key: "old_keyword_list",
                desc: "旧关键词列表",
            },
            {
                key: "new_keyword_list",
                desc: "新关键词列表",
            },
        ]
    },
    {
        id: "RemoveIdeaEvent",
        name: "删除知识点",
        attrList: [
            {
                key: "idea_id",
                desc: "知识点ID",
            },
            {
                key: "title",
                desc: "知识点标题",
            },
        ]
    },
    {
        id: "SetAppraiseEvent",
        name: "评价知识点",
        attrList: [
            {
                key: "idea_id",
                desc: "知识点ID",
            },
            {
                key: "title",
                desc: "知识点标题",
            },
            {
                key: "appriase_type",
                desc: "评价类型"
            }
        ]
    },
    {
        id: "CancelAppraiseEvent",
        name: "取消评价知识点",
        attrList: [
            {
                key: "idea_id",
                desc: "知识点ID",
            },
            {
                key: "title",
                desc: "知识点标题",
            },
            {
                key: "appriase_type",
                desc: "评价类型"
            }
        ]
    },
    {
        id: "ImportIdeaEvent",
        name: "导入知识点",
        attrList: [
            {
                key: "idea_group_id",
                desc: "知识点分组ID",
            },
            {
                key: "name",
                desc: "知识点分组名称",
            },
            {
                key: "count",
                desc: "导入数量",
            }
        ],
    },
    {
        id: "ClearGroupEvent",
        name: "清空知识点分组",
        attrList: [
            {
                key: "idea_group_id",
                desc: "知识点分组ID",
            },
            {
                key: "title",
                desc: "知识点分组名称",
            },
        ],
    }
];

const spritEventList: EventDesc[] = [
    {
        id: "CreateEvent",
        name: "创建工作计划",
        attrList: [
            {
                key: "sprit_id",
                desc: "工作计划ID",
            },
            {
                key: "title",
                desc: "工作计划标题",
            },
            {
                key: "start_time",
                desc: "开始时间",
            },
            {
                key: "end_time",
                desc: "结束时间",
            },
        ],
    },
    {
        id: "UpdateEvent",
        name: "修改工作计划",
        attrList: [
            {
                key: "sprit_id",
                desc: "工作计划ID",
            },
            {
                key: "old_title",
                desc: "旧工作计划标题",
            },
            {
                key: "new_title",
                desc: "新工作计划标题",
            },
            {
                key: "old_start_time",
                desc: "旧开始时间",
            },
            {
                key: "new_start_time",
                desc: "新开始时间",
            },
            {
                key: "old_end_time",
                desc: "旧结束时间",
            },
            {
                key: "new_end_time",
                desc: "新结束时间",
            },
        ],
    },
    {
        id: "RemoveEvent",
        name: "删除工作计划",
        attrList: [
            {
                key: "sprit_id",
                desc: "工作计划ID",
            },
            {
                key: "title",
                desc: "工作计划标题",
            },
            {
                key: "start_time",
                desc: "开始时间",
            },
            {
                key: "end_time",
                desc: "结束时间",
            },
        ],
    },
    {
        id: "LinkDocEvent",
        name: "关联文档",
        attrList: [
            {
                key: "sprit_id",
                desc: "工作计划ID",
            },
            {
                key: "sprit_title",
                desc: "工作计划标题",
            },
            {
                key: "doc_id",
                desc: "文档ID",
            },
            {
                key: "doc_title",
                desc: "文档标题",
            },
        ],
    },
    {
        id: "CancelLinkDocEvent",
        name: "取消关联文档",
        attrList: [
            {
                key: "sprit_id",
                desc: "工作计划ID",
            },
            {
                key: "sprit_title",
                desc: "工作计划标题",
            },
            {
                key: "doc_id",
                desc: "文档ID",
            },
            {
                key: "doc_title",
                desc: "文档标题",
            },
        ],
    },
];

const requirementEventList: EventDesc[] = [
    {
        id: "CreateRequirementEvent",
        name: "创建需求",
        attrList: [
            {
                key: "requirement_id",
                desc: "需求ID"
            },
            {
                key: "title",
                desc: "需求标题"
            },
        ]
    },
    {
        id: "UpdateRequirementEvent",
        name: "修改需求",
        attrList: [
            {
                key: "requirement_id",
                desc: "需求ID"
            },
            {
                key: "old_title",
                desc: "旧需求标题"
            },
            {
                key: "new_title",
                desc: "新需求标题"
            },
        ]
    },
    {
        id: "UpdateTagEvent",
        name: "更新需求标签",
        attrList: [
            {
                key: "requirement_id",
                desc: "需求ID"
            },
            {
                key: "title",
                desc: "需求标题"
            },
            {
                key: "old_tag_list",
                desc: "旧标签列表",
            },
            {
                key: "new_tag_list",
                desc: "新标签列表",
            },
        ]
    },
    {
        id: "RemoveRequirementEvent",
        name: "删除需求",
        attrList: [
            {
                key: "requirement_id",
                desc: "需求ID"
            },
            {
                key: "title",
                desc: "需求标题"
            },
        ]
    },
    {
        id: "LinkIssueEvent",
        name: "关联任务/缺陷",
        attrList: [
            {
                key: "requirement_id",
                desc: "需求ID"
            },
            {
                key: "title",
                desc: "需求标题"
            },
            {
                key: "issue_id",
                desc: "任务/缺陷ID",
            },
            {
                key: "issue_title",
                desc: "任务/缺陷标题",
            },
        ]
    },
    {
        id: "UnlinkIssueEvent",
        name: "取消关联任务/缺陷",
        attrList: [
            {
                key: "requirement_id",
                desc: "需求ID"
            },
            {
                key: "title",
                desc: "需求标题"
            },
            {
                key: "issue_id",
                desc: "任务/缺陷ID",
            },
            {
                key: "issue_title",
                desc: "任务/缺陷标题",
            },
        ]
    },
    {
        id: "CloseRequirementEvent",
        name: "关闭需求",
        attrList: [
            {
                key: "requirement_id",
                desc: "需求ID"
            },
            {
                key: "title",
                desc: "需求标题"
            },
        ]
    },
    {
        id: "OpenRequirementEvent",
        name: "打开需求",
        attrList: [
            {
                key: "requirement_id",
                desc: "需求ID"
            },
            {
                key: "title",
                desc: "需求标题"
            },
        ]
    },
    {
        id: "SetKanoInfoEvent",
        name: "设置kano分析",
        attrList: [
            {
                key: "requirement_id",
                desc: "需求ID"
            },
            {
                key: "title",
                desc: "需求标题"
            },
        ]
    },
    {
        id: "SetFourQInfoEvent",
        name: "设置四象限分析",
        attrList: [
            {
                key: "requirement_id",
                desc: "需求ID"
            },
            {
                key: "title",
                desc: "需求标题"
            },
        ]
    },
];

const projectEventList: EventDesc[] = [
    {
        id: "CreateProjectEvent",
        name: "创建项目",
        attrList: []
    },
    {
        id: "UpdateProjectEvent",
        name: "修改项目",
        attrList: [
            {
                key: "new_project_name",
                desc: "新项目名称",
            }
        ]
    },
    {
        id: "OpenProjectEvent",
        name: "打开项目",
        attrList: []
    },
    {
        id: "CloseProjectEvent",
        name: "关闭项目",
        attrList: []
    },
    {
        id: "RemoveProjectEvent",
        name: "删除项目",
        attrList: []
    },
    {
        id: "GenInviteEvent",
        name: "创建邀请",
        attrList: []
    },
    {
        id: "JoinProjectEvent",
        name: "加入项目",
        attrList: []
    },
    {
        id: "LeaveProjectEvent",
        name: "离开项目",
        attrList: []
    },
    {
        id: "CreateRoleEvent",
        name: "创建角色",
        attrList: [
            {
                key: "role_id",
                desc: "角色ID",
            },
            {
                key: "role_name",
                desc: "角色名称",
            }
        ]
    },
    {
        id: "UpdateRoleEvent",
        name: "更新角色",
        attrList: [
            {
                key: "role_id",
                desc: "角色ID",
            },
            {
                key: "old_role_name",
                desc: "旧角色名称",
            },
            {
                key: "new_role_name",
                desc: "新角色名称",
            },
        ]
    },
    {
        id: "RemoveRoleEvent",
        name: "删除角色",
        attrList: [
            {
                key: "role_id",
                desc: "角色ID",
            },
            {
                key: "role_name",
                desc: "角色名称",
            }
        ]
    },
    {
        id: "UpdateProjectMemberEvent",
        name: "更新成员",
        attrList: [
            {
                key: "member_user_id",
                desc: "成员ID",
            },
            {
                key: "old_member_display_name",
                desc: "旧成员名称",
            },
            {
                key: "new_member_display_name",
                desc: "新成员名称",
            },
        ]
    },
    {
        id: "RemoveProjectMemberEvent",
        name: "删除成员",
        attrList: [
            {
                key: "member_user_id",
                desc: "成员ID",
            },
            {
                key: "member_display_name",
                desc: "成员名称",
            },
        ]
    },
    {
        id: "SetProjectMemberRoleEvent",
        name: "设置成员角色",
        attrList: [
            {
                key: "role_id",
                desc: "角色ID",
            },
            {
                key: "role_name",
                desc: "角色名称",
            },
            {
                key: "member_user_id",
                desc: "成员ID",
            },
            {
                key: "member_display_name",
                desc: "成员名称",
            },
        ]
    },
    {
        id: "AddProjectAppEvent",
        name: "增加项目应用",
        attrList: [
            {
                key: "app_id",
                desc: "应用ID"
            },
            {
                key: "app_name",
                desc: "应用名称"
            },
            {
                key: "app_url",
                desc: "应用地址"
            },
            {
                key: "app_open_type",
                desc: "应用打开方式"
            },
        ]
    },
    {
        id: "RemoveProjectAppEvent",
        name: "删除项目应用",
        attrList: [
            {
                key: "app_id",
                desc: "应用ID"
            },
            {
                key: "app_name",
                desc: "应用名称"
            },
        ]
    },
    {
        id: "ChangeOwnerEvent",
        name: "转移超管权限",
        attrList: [
            {
                key: "member_user_id",
                desc: "成员ID",
            },
            {
                key: "member_display_name",
                desc: "成员名称",
            },
        ]
    },
    {
        id: "CreateEventSubscribeEvent",
        name: "创建事件订阅",
        attrList: [
            {
                key: "subscribe_id",
                desc: "事件订阅ID"
            },
            {
                key: "chat_bot_type",
                desc: "事件订阅类型"
            },
            {
                key: "chat_bot_name",
                desc: "事件订阅名称"
            },
        ]
    },
    {
        id: "UpdateEventSubscribeEvent",
        name: "修改事件订阅",
        attrList: [
            {
                key: "subscribe_id",
                desc: "事件订阅ID"
            },
            {
                key: "chat_bot_type",
                desc: "事件订阅类型"
            },
            {
                key: "old_chat_bot_name",
                desc: "旧事件订阅名称"
            },
            {
                key: "new_chat_bot_name",
                desc: "新事件订阅名称"
            },
        ]
    },
    {
        id: "RemoveEventSubscribeEvent",
        name: "删除事件订阅",
        attrList: [
            {
                key: "subscribe_id",
                desc: "事件订阅ID"
            },
            {
                key: "chat_bot_type",
                desc: "事件订阅类型"
            },
            {
                key: "chat_bot_name",
                desc: "事件订阅名称"
            },
        ]
    },
    {
        id: "SetAlarmConfigEvent",
        name: "设置告警",
        attrList: []
    },
    {
        id: "CustomEvent",
        name: "自定义事件",
        attrList: [
            {
                key: "event_type",
                desc: "自定义事件类型"
            },
            {
                key: "event_content",
                desc: "自定义事件内容"
            }
        ],
    },
    {
        id: "WatchEvent",
        name: "关注",
        attrList: [
            {
                key: "target_type",
                desc: "目标类型"
            },
            {
                key: "target_id",
                desc: "目标ID"
            },
            {
                key: "target_title",
                desc: "目标标题"
            }
        ],
    },
    {
        id: "UnwatchEvent",
        name: "取消关注内容",
        attrList: [
            {
                key: "target_type",
                desc: "目标类型"
            },
            {
                key: "target_id",
                desc: "目标ID"
            },
            {
                key: "target_title",
                desc: "目标标题"
            }
        ],
    },
    {
        id: "RecoverFromRecycleEvent",
        name: "从回收站恢复",
        attrList: [
            {
                key: "recycle_item_id",
                desc: "删除对象ID"
            },
            {
                key: "recycle_item_type",
                desc: "删除对象类型"
            },
            {
                key: "title",
                desc: "删除对象标题"
            }
        ],
    },
    {
        id: "RemoveFromRecycleEvent",
        name: "从回收站删除",
        attrList: [
            {
                key: "recycle_item_id",
                desc: "删除对象ID"
            },
            {
                key: "recycle_item_type",
                desc: "删除对象类型"
            },
            {
                key: "title",
                desc: "删除对象标题"
            }
        ],
    },
    {
        id: "ClearFromRecycleEvent",
        name: "从回收站清除",
        attrList: [
            {
                key: "recycle_item_type_list",
                desc: "清除对象类型列表"
            }
        ]
    },
];

const issueEventList: EventDesc[] = [
    {
        id: "CreateEvent",
        name: "创建工单",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
        ]
    },
    {
        id: "UpdateEvent",
        name: "修改工单",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "old_title",
                desc: "旧工单标题",
            },
            {
                key: "new_title",
                desc: "新工单标题",
            },
        ]
    },
    {
        id: "UpdateTagEvent",
        name: "更新工单标签",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
            {
                key: "old_tag_list",
                desc: "旧标签列表",
            },
            {
                key: "new_tag_list",
                desc: "新标签列表",
            },
        ]
    },
    {
        id: "RemoveEvent",
        name: "删除工单",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
        ]
    },
    {
        id: "AssignExecUserEvent",
        name: "指派执行者",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
            {
                key: "exec_user_id",
                desc: "执行用户ID"
            },
            {
                key: "exec_user_display_name",
                desc: "执行用户名称"
            },
        ]
    },
    {
        id: "AssignCheckUserEvent",
        name: "指派检查者",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
            {
                key: "check_user_id",
                desc: "检查用户ID"
            },
            {
                key: "check_user_display_name",
                desc: "检查用户名称"
            },
        ]
    },
    {
        id: "ChangeStateEvent",
        name: "修改工单状态",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
            {
                key: "old_state",
                desc: "旧工单状态",
            },
            {
                key: "new_state",
                desc: "新工单状态",
            },
        ]
    },
    {
        id: "UpdateProcessStageEvent",
        name: "修改工单执行阶段",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
            {
                key: "old_stage",
                desc: "旧工单执行阶段",
            },
            {
                key: "new_stage",
                desc: "新工单执行阶段",
            },
        ]
    },
    {
        id: "LinkSpritEvent",
        name: "关联工作计划",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
            {
                key: "sprit_id",
                desc: "工作计划ID",
            },
            {
                key: "sprit_title",
                desc: "工作计划标题",
            },
        ]
    },
    {
        id: "CancelLinkSpritEvent",
        name: "取消关联工作计划",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
            {
                key: "sprit_id",
                desc: "工作计划ID",
            },
            {
                key: "sprit_title",
                desc: "工作计划标题",
            },
        ]
    },
    {
        id: "SetStartTimeEvent",
        name: "设置开始时间",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
            {
                key: "start_time",
                desc: "开始时间"
            }
        ]
    },
    {
        id: "CancelStartTimeEvent",
        name: "取消开始时间",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
        ]
    },
    {
        id: "SetEndTimeEvent",
        name: "设置结束时间",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
            {
                key: "end_time",
                desc: "结束时间",
            }
        ]
    },
    {
        id: "CancelEndTimeEvent",
        name: "取消结束时间",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
        ]
    },
    {
        id: "SetEstimateMinutesEvent",
        name: "设置预估时间",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
            {
                key: "estimate_minutes",
                desc: "预估时间(单位分钟)"
            }
        ]
    },
    {
        id: "CancelEstimateMinutesEvent",
        name: "取消预估时间",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
        ]
    },
    {
        id: "SetRemainMinutesEvent",
        name: "设置剩余时间",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
            {
                key: "remain_minutes",
                desc: "剩余时间(单位分钟)"
            },
            {
                key: "has_spend_minutes",
                desc: "是否有开销时间"
            },
            {
                key: "spend_minutes",
                desc: "开销时间(单位分钟)"
            },
        ]
    },
    {
        id: "CancelRemainMinutesEvent",
        name: "取消剩余时间",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
        ]
    },
    {
        id: "CreateSubIssueEvent",
        name: "增加子工单",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "issue_title",
                desc: "工单标题",
            },
            {
                key: "title",
                desc: "子工单标题"
            }
        ]
    },
    {
        id: "UpdateSubIssueEvent",
        name: "修改子工单",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "issue_title",
                desc: "工单标题",
            },
            {
                key: "old_title",
                desc: "旧子工单标题"
            },
            {
                key: "new_title",
                desc: "新子工单标题"
            }
        ]
    },
    {
        id: "UpdateSubIssueStateEvent",
        name: "更新子工单状态",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "issue_title",
                desc: "工单标题",
            },
            {
                key: "title",
                desc: "子工单标题"
            },
            {
                key: "done",
                desc: "是否完成"
            }
        ]
    },
    {
        id: "RemoveSubIssueEvent",
        name: "删除子工单",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "issue_title",
                desc: "工单标题",
            },
            {
                key: "title",
                desc: "子工单标题"
            },
        ]
    },
    {
        id: "AddDependenceEvent",
        name: "增加工单依赖",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "issue_title",
                desc: "工单标题",
            },
            {
                key: "depend_issue_id",
                desc: "依赖工单ID"
            },
            {
                key: "depend_issue_type",
                desc: "依赖工单类型"
            },
            {
                key: "depend_issue_title",
                desc: "依赖工单标题"
            },
        ]
    },
    {
        id: "RemoveDependenceEvent",
        name: "删除依赖依赖",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "issue_title",
                desc: "工单标题",
            },
            {
                key: "depend_issue_id",
                desc: "依赖工单ID"
            },
            {
                key: "depend_issue_type",
                desc: "依赖工单类型"
            },
            {
                key: "depend_issue_title",
                desc: "依赖工单标题"
            },
        ]
    },
    {
        id: "SetDeadLineTimeEvent",
        name: "设置截止时间",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
            {
                key: "dead_line_time",
                desc: "截止时间"
            }
        ]
    },
    {
        id: "CancelDeadLineTimeEvent",
        name: "取消截止时间",
        attrList: [
            {
                key: "issue_id",
                desc: "工单ID",
            },
            {
                key: "issue_type",
                desc: "工单类型",
            },
            {
                key: "title",
                desc: "工单标题",
            },
        ]
    },
];

const testcaseEventList: EventDesc[] = [
    {
        id: "CreateCaseEvent",
        name: "创建测试用例",
        attrList: [
            {
                key: "case_id",
                desc: "测试用例ID"
            },
            {
                key: "case_title",
                desc: "测试用例名称"
            },
        ],
    },
    {
        id: "UpdateCaseEvent",
        name: "更新测试用例",
        attrList: [
            {
                key: "case_id",
                desc: "测试用例ID"
            },
            {
                key: "old_case_title",
                desc: "原测试用例名称"
            },
            {
                key: "new_case_title",
                desc: "新测试用例名称"
            },
        ],
    },
    {
        id: "RemoveCaseEvent",
        name: "删除测试用例",
        attrList: [
            {
                key: "case_id",
                desc: "测试用例ID"
            },
            {
                key: "case_title",
                desc: "测试用例名称"
            },
        ],
    },
    {
        id: "LinkSpritEvent",
        name: "关联工作计划",
        attrList: [
            {
                key: "case_id",
                desc: "测试用例ID"
            },
            {
                key: "case_title",
                desc: "测试用例名称"
            },
            {
                key: "sprit_id",
                desc: "工作计划ID"
            },
            {
                key: "sprit_title",
                desc: "工作计划名称"
            },
        ],
    },
    {
        id: "UnlinkSpritEvent",
        name: "取消关联工作计划",
        attrList: [
            {
                key: "case_id",
                desc: "测试用例ID"
            },
            {
                key: "case_title",
                desc: "测试用例名称"
            },
            {
                key: "sprit_id",
                desc: "工作计划ID"
            },
            {
                key: "sprit_title",
                desc: "工作计划名称"
            },
        ],
    },
];

const entryEventList: EventDesc[] = [
    {
        id: "CreateEvent",
        name: "创建内容",
        attrList: [
            {
                key: "entry_id",
                desc: "内容ID",
            },
            {
                key: "entry_type",
                desc: "内容类型",
            },
            {
                key: "entry_title",
                desc: "内容标题",
            }
        ],
    },
    {
        id: "RemoveEvent",
        name: "删除内容",
        attrList: [
            {
                key: "entry_id",
                desc: "内容ID",
            },
            {
                key: "entry_type",
                desc: "内容类型",
            },
            {
                key: "entry_title",
                desc: "内容标题",
            }
        ],
    },
];

export const eventGroupList: EventGroup[] = [
    {
        id: "ProjectEvent",
        name: "项目",
        eventDescList: projectEventList,
    },
    {
        id: "EntryEvent",
        name: "内容",
        eventDescList: entryEventList,
    },
    {
        id: "SpritEvent",
        name: "工作计划",
        eventDescList: spritEventList,
    },
    {
        id: "IssueEvent",
        name: "工单",
        eventDescList: issueEventList,
    },
    {
        id: "TestcaseEvent",
        name: "测试用例",
        eventDescList: testcaseEventList,
    },
    {
        id: "RequirementEvent",
        name: "项目需求",
        eventDescList: requirementEventList,
    },
    {
        id: "CodeEvent",
        name: "代码评论",
        eventDescList: codeEventList,
    },
    {
        id: "IdeaEvent",
        name: "知识点",
        eventDescList: ideaEventList,
    }
];